package indzcraft.loader;

public class Gem{
	
	public static final int META = 1;
	public static final int RED = 2;
	public static final int ORANGE = 4;
	public static final int PURPLE = 8;
	public static final int BLUE = 3000; // TODO Find Correct number code
	public static final int GREEN = 3001;
	public static final int YELLOW = 3002; 
	
	private int type = 0; // 1 = meta, 2 = red, 4 = orange, 8 = purple
	private int agi = 0;
	private int hit = 0;
	private int haste = 0;
	private int mastery = 0;
	private int id;
	private String name;
	private String icon;
	
	public static String[] Colors = { 
		"NONE", "META", "RED", "NONE", "ORANGE", "NONE", "NONE", "NONE", "PURPLE"
	};
	
	public Gem(int id, String name,String icon,int type,int a,int h,int ha,int ma){
		this.setId(id);
		this.setName(name);
		this.setIcon(icon);
		this.type = type;
		agi = a;
		hit = h;
		haste = ha;
		mastery = ma;
	}
	
	public int getType(){
		return type;
	}
	
	public void setAgi(int a){
		agi = a;
	}
	public void setHit(int a){
		hit = a;
	}
	public void setHaste(int a){
		haste = a;
	}
	
	public int getAgi(){
		return agi;
	}
	public int getHit(){
		return hit;
	}
	public int getHaste(){
		return haste;
	}
	/*public String toString(){
		String ret = "";
		if(this.agi != 0){
			ret = this.agi + " Agi, ";
		}
		if(this.haste != 0){
			ret += this.haste + " Haste";
		}
		if(this.hit != 0){
			ret += this.hit + " Hit";
		}
		return ret;
	}*/

	public String getName() {
		return this.name;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIcon() {
		return icon;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setMastery(int mastery) {
		this.mastery = mastery;
	}

	public int getMastery() {
		return mastery;
	}
}
